package com.group.library.order.service;

import com.github.pagehelper.PageInfo;
import com.group.library.order.entity.User;
import com.group.library.order.entity.Notice;
import com.group.library.order.entity.User;
import com.group.library.order.entity.UserLogin;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;


public interface UserBaseService {

    //获取用户详细信息
    User getUserInfo();

    PageInfo<User> listUser(Integer page, Integer limit, String name, String phone, String number);

    boolean addUser();

    //验证用户
    UserLogin ExitUser(String number,String password);

    //显示用户的信息
    User showInfo();

    //修改密码
//    boolean modifyResult(String newPwd,String userNum);

    //修改基本信息
    User modifyUser(String userId,String name,String number,String faculty,String grade,String phone);

    //获取座位详细信息
    ArrayList<HashMap<Integer, ArrayList<HashMap<Integer,String>>>> getSeatInfo();

    //获取公告信息
    Notice getNoticeInfo();
}
